﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/MasterPage/Main.cshtml";
}
@model MvcApplication1.Models.KhieuNaiModel

<h4>Danh sách các khiếu nại</h4>

<table class="feedback-table">
    <colgroup>
        <col width="5%">
		<col width="12%">
		<col width="25%">
		<col width="*">
        <col width="10%">
	</colgroup>
	<thead>
		<tr> 
			<th>STT</th>
			<th>Người gửi</th>
			<th>Tiêu đề</th>
            <th>Nội dung</th>
            <th>Ngày gửi</th>
		</tr>
	</thead>
	<tbody>
        <tr>
         @{
             int i = 1;
             foreach (var donKhieuNaiModel in ViewBag.dsKhieuNaiModels)
            {
                <tr>
                    <td>@i</td>
                    <td>@donKhieuNaiModel.khachHangUserName</td>
                    <td>@donKhieuNaiModel.tieuDe</td>
                    <td>@donKhieuNaiModel.noiDung</td>
                    <td>@donKhieuNaiModel.ngayGuiKhieuNai</td>
                </tr>
                i = i + 1;
            }
        }
        </tr>
    </tbody>
</table>

